<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>智游公寓系统 - 租户信息管理</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/font-awesome/css/font-awesome.css">
</head>

<body>
<div class="box">
	<h3>房屋管理</h3>
	<div class="actions">
		<div>
			<a class="btn btn-primary" href="${pageContext.request.contextPath}/views/house/add.jsp">添加房屋信息</a>
		</div>
		<div>
			<form action="${pageContext.request.contextPath}/house/list">
				<input type="text" name="h_area" placeholder="所属地区">
				<input type="submit" value="查询">				
			</form>
		</div>
	</div>
	<table class="list">
		<tr>
			<th>房屋序号</th>
			<th>所属地区</th>
			<th>所属小区</th>
			<th>单元号</th>
			<th>所属楼层</th>
			<th>房间号</th>
			<th>面积</th>
			<th>朝向</th>
			<th>装修</th>
			<th>是否双气</th>
			<th>限主人数</th>
			<th>配套设施</th>
			<th>出租价格</th>
			<th>房屋状态</th>
			<th>房屋图片</th>
			<th>房屋地址</th>
			<th>添加时间</th>
			<th>修改时间</th>
			<th>房屋操作</th>
			
		</tr>
		<tr>
			<td>1</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>....</td>
			<td>
				<a class="fa fa-info" title="详情" href="detail.html"></a>
				&nbsp;&nbsp;
				<a class="fa fa-pencil" title="编辑" href="update.html"></a>
				&nbsp;&nbsp;
				<a class="fa fa-remove" title="删除" href="${pageContext.request.contextPath}/house/delete?h_id=${house.h_id}" onclick="confirmDelete(1)"></a>
			</td>
		</tr>
	</table>
	<div class="pager-info">
		<div>共有 1 条记录，第 1/1 页 </div>
		<div>
			<ul class="pagination">
				<li class="paginate_button previous disabled }">
				<a href="#">上一页</a>
				</li>
				<li class="paginate_button active"><a href="#">1</a></li>
				<li class="paginate_button next disabled">
				<a href="#">下一页</a>
				</li>
			</ul>
		</div>
	</div>
</div>
<script src="${pageContext.request.contextPath}/js/jquery/jquery.js"></script>
<script>
function confirmDelete(){
	if (confirm("确定要删除？")) {
		return true;
	}
	return false;
}
</script>
</body>
</html>